from tools import is_factor

numlist = {}

for x in range(2,11):
    if is_factor(x):
        numlist[x] = 1

print(numlist)

testlist = [4,6,8,9,10]

number = 4
def foo(tmp):        
    for num in numlist.keys():
        y = tmp / num
        if y != 1:
            foo(y)
        else:
            numlist[num]
        return 
